package com.base.key.service;

import com.base.key.domain.bo.TKeyReserveBo;
import com.base.key.domain.vo.TKeyReserveVo;
import com.base.common.core.page.TableDataInfo;
import com.base.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 密钥备用表Service接口
 *
 * @author base
 * @date 2023-10-17
 */
public interface ITKeyReserveService {

    /**
     * 查询密钥备用表
     */
    TKeyReserveVo queryById(String keyCode);

    /**
     * 查询密钥备用表列表
     */
    TableDataInfo<TKeyReserveVo> queryPageList(TKeyReserveBo bo, PageQuery pageQuery);

    /**
     * 查询密钥备用表列表
     */
    List<TKeyReserveVo> queryList(TKeyReserveBo bo);

    /**
     * 新增密钥备用表
     */
    Boolean insertByBo(TKeyReserveBo bo);

    /**
     * 修改密钥备用表
     */
    Boolean updateByBo(TKeyReserveBo bo);

    /**
     * 校验并批量删除密钥备用表信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);
}
